using System;
using System.Collections.Generic;
using System.Linq;

namespace TestMonkey.Core.Templates
{
	public class Equatable1 : TemplateProcessor
	{
		public override bool ShouldRun(Type type)
		{
			return !type.IsEnum && type.HasConstructors() && type.IsComparable(ComparisonType.IEquatable1);
		}

		public override string TemplateFileName(Type type)
		{
			if (type.IsClass)
				return "Equatable1-Class";
			else
				return "Equatable1-Struct";
		}
	}
}
